package com.finance.system.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.finance.system.configure.mvc.LocalDateTimeDeserializer;
import com.finance.system.configure.mvc.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.codehaus.jackson.map.ext.JodaDeserializers;
import org.codehaus.jackson.map.ext.JodaSerializers;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表，存放用户主体信息
 * </p>
 *
 * @author whdong
 * @since 2019-12-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_user")
@ApiModel(value="UserEntity对象", description="用户表，存放用户主体信息")
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名，用来登陆")
    private String userName;

    @ApiModelProperty(value = "手机号，用来登陆")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "公司")
    private String company;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createAt = LocalDateTime.now();

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateAt;

    @ApiModelProperty(value = "密码，用来登陆")
    private String password;

    @ApiModelProperty(value = "昵称，用来展示")
    private String nickName;


}
